package dansproject;

public class User {

	private String userName; // unique, 50 characters max, not empty
	private String password; // not empty, encrypted, 10 characters max, not
								// case sensitive
	private int zipCode; // 5 numbers, not empty
	public String gender; // drop down box with choice
	private int age; // drop down menu 0-110 - would an actual date be better?

	// constructor for user
	public User(String userName, String password, int zipCode, String gender,
			int age) {
		this.setUserName(userName);
		this.setPassword(password);
		this.setZipCode(zipCode);
		this.gender = gender;
		this.setAge(age);
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserName() {
		return userName;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPassword() {
		return password;
	}

	public void setZipCode(int zipCode) {
		this.zipCode = zipCode;
	}

	public int getZipCode() {
		return zipCode;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public int getAge() {
		return age;
	}

}